/*
 * Copyright (C) 2018 guomw.Inc. All rights reserved.
 * 项目名称： report-manage
 * 文件名称： AppCode.java
 * Date：18-11-5 上午10:54
 * Author: guomw
 */

package com.guomw.report.common.enums;

import lombok.AllArgsConstructor;

/**
 * @author guomw
 * @date 2018/9/6
 */
@AllArgsConstructor
public enum AppCode implements ICommonEnum {
    /**
     * 枚举
     */
    SYSTEM_BAD_REQUEST(0, "请求失败"),
    SUCCESS(1, "操作成功"),
    SIGN_NOT_PASS(2, "签名参数未传"),
    SIGN_ERROR(3, "签名错误"),
    /**
     * token失效
     */
    TOKEN_ERROR(4, "登录信息失效，请重新登录"),
    TIMESTAMP_ERROR(5, "timestamp失效"),
    NOT_DATA(6,"暂无数据"),
    ERROR(7,"操作失败"),
    NOT_UPDATE(8,"当前已是最新版本"),
    PARAMETER_ERROR(9, "参数错误"),
    NOT_LOGIN(10,"请先填写用户信息"),
    NOT_AUTHORITY(403, "没有访问权限"),
    FILE_NOT_ZIP(801, "不是zip文件"),
    EXIST_SAME_CODE(3001,"存在相同的编码，请修改编码")
    ;
    private int value;
    private String name;
    @Override
    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
